package com.wbxqy.car_management_system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 评价表
 * </p>
 *
 * @author wbxqy
 * @since 2024-07-04
 */
@Getter
@Setter
@TableName("t_rating_wbxqy")
@ApiModel(value = "Rating对象", description = "评价表")
public class Rating implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("评价ID，主键")
    @TableId(value = "rating_id_wbxqy", type = IdType.AUTO)
    private Integer ratingIdWbxqy;

    @ApiModelProperty("请求ID，外键")
    private Integer requestIdWbxqy;

    @ApiModelProperty("请求信息")
    @TableField(exist = false)
    private CarRequest carRequest;

    @ApiModelProperty("用户ID，外键")
    private Integer userIdWbxqy;

    @ApiModelProperty("用户信息")
    @TableField(exist = false)
    private User user;

    @ApiModelProperty("评分（1-5）")
    private Integer ratingWbxqy;

    @ApiModelProperty("评价内容")
    private String commentsWbxqy;

    @ApiModelProperty("评价相关图片的URL")
    private String imageUrlWbxqy;

    @ApiModelProperty("评价日期")
    private LocalDateTime dateWbxqy;

    @ApiModelProperty("记录创建时间")
    private LocalDateTime createTimeWbxqy;

    @ApiModelProperty("记录更新时间")
    private LocalDateTime updateTimeWbxqy;

    @ApiModelProperty("是否删除标记，逻辑删除")
    private Boolean isDeletedWbxqy;


}
